/**
 * 是否允许超库存请领
 * @return {boolean}
 */
let isAllowOverApply = () => {
  return global.utils.getBooleanParam('allow_over_apply', true)
}

/**
 * 是否允许零库存请领
 * @return {boolean}
 */
let isAllowZeroApply = () => {
  return global.utils.getBooleanParam('allow_zero_apply', true)
}
/**
 * 是否自动转配送单
 * @return {boolean}
 */
let isAutoChangeDist = () => {
  return global.utils.getBooleanParam('auto_change_dist', false)
}

/**
 * 是否自动转调拨单
 * @return {boolean}
 */
let isAutoChangeTransfer = () => {
  return global.utils.getBooleanParam('auto_change_transfer', false)
}

let isApplyLockStock = () => {
  return global.utils.getBooleanParam('flag_apply_lock', true)
}

/**
 * 供应商入库单是否可以修改
 * @return {boolean}
 */
let isAllowInOrderModify = () => {
  return global.utils.getBooleanParam('allow_in_order_modify', true)
}

/**
 * 供应商入库单是否可以删除
 * @return {boolean}
 */
let isAllowInOrderDelete = () => {
  return global.utils.getBooleanParam('allow_in_order_delete', true)
}

const parameters = {
  isAllowOverApply,
  isAllowZeroApply,
  isAutoChangeDist,
  isAutoChangeTransfer,
  isApplyLockStock,
  isAllowInOrderModify,
  isAllowInOrderDelete
}
export default parameters
